<?php
	#debug($user);
	$iconpath = Configure::read('Path.Icon').$user['Icon']['name'].'.'.$user['Icon']['ext'];
?>
<div id="maincontent">
<p>
<?php p($user['User']['nickname']);?>さんのマイフレンド
<?php echo $html->image($iconpath);?>
</p>
<?php 
if(empty($user['Friend'])){
?>
<p>マイフレンドの登録はありません</p>
<?php 
}else{
foreach($user['Friend'] as $friend){
?>
	<div class="profile">
	<p><?php echo $html->link($name->getNickname($friend['userfriend']).'さん', '/members/view/'.$friend['userfriend']);?></p>
	</div>
<?php 
}
?>

<?php 
}
?>
</div> <!-- end maincontent -->

